<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
  <title>修改密码</title>
  <style>
    body {
      font-family: Arial, sans-serif;
      margin: 0;
      padding: 20px;
      background-color: #f4f4f4;
    }
    form {
      background-color: #fff;
      padding: 20px;
      border: 1px solid #ddd;
      border-radius: 5px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    input[type="password"] {
      padding: 8px;
      border: 1px solid #ddd;
      border-radius: 3px;
    }
    input[type="submit"] {
      background-color: #4CAF50;
      color: white;
      padding: 10px 20px;
      border: none;
      border-radius: 3px;
      cursor: pointer;
    }
  </style>
</head>
<body>
<h1>修改密码</h1>
<form action="${pageContext.request.contextPath}/personalCenter/personal" method="post">
  <label for="oldPassword">旧密码：</label>
  <input type="text" id="oldPassword" name="oldPassword" required value="${user.password}" ><br>
  <label for="newPassword">新密码：</label>
  <input type="password" id="newPassword" name="newPassword" required><br>
  <input type="submit" value="确认修改">
</form>
</form>
</body>
</html>